package com.dzl.exchange.dao;

import com.dzl.base.mapper.BaseMapper;
import com.dzl.exchange.pojo.WelfareExchangeMealGoods;
import com.dzl.exchange.pojo.vo.ExchangeSkuGoodsVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 兑换券套餐商品表(WelfareExchangeMealGoods)表数据库访问层
 * @author caobucao
 * @date 2021-07-09 17:30:07
 */
@Repository
public interface WelfareExchangeMealGoodsMapper extends BaseMapper<WelfareExchangeMealGoods> {

    /**
     * 删除所有选中套餐的商品数据
     * @date 2021/7/10 19:26
     * @author caobucao
     * @param mealIds  套餐ids
     * @return java.lang.Integer
     */
    Integer deleteByMealIds(@Param("mealIds") List<Integer> mealIds);

    /**
     * 根据套餐id查询商品规格列表
     * @param mealId 套餐id
     * @author liuguanjun
     * @date 2021/12/02 11:56
     */
    List<ExchangeSkuGoodsVo> selectExchangeSkuGoodsVoByMealId(@Param("mealId") Integer mealId);
}
